<div class="task">
<?php include ('buttons.tpl'); ?>
</div>
<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<h2><?php echo $heading_title; ?></h2>
<div class="description"><?php echo $heading_description; ?></div>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
  <div id="tabs">
	<ul>
	  <li><a href="#tabs-1"><?php echo $tab_general; ?></a></li>
	</ul>
	<div id="tabs-1">
	  <table>
	    <tr>
	      <td width="185"><?php echo $entry_option; ?></td>
	      <td><select name="option">
	          <?php foreach ($options as $option) { ?>
	          <optgroup label="<?php echo $option['name']; ?>">
	          <?php foreach ($option['value'] as $option_value) { ?>
	          <?php if ($option_value['option_value_id'] == $option_value_id) { ?>
	          <option value="<?php echo $option_value['option_value_id']; ?>" selected="selected"><?php echo $option_value['name']; ?></option>
	          <?php } else { ?>
	          <option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?></option>
	          <?php } ?>
	          <?php } ?>
	          </optgroup>
	          <?php } ?>
	        </select></td>
	    </tr>
	    <tr>
	      <td><?php echo $entry_prefix; ?></td>
	      <td><select name="prefix">
	          <?php if ($prefix == '+') { ?>
	          <option value="+" selected="selected"><?php echo $text_plus; ?></option>
	          <option value="-"><?php echo $text_minus; ?></option>
	          <?php } else { ?>
	          <option value="+"><?php echo $text_plus; ?></option>
	          <option value="-" selected="selected"><?php echo $text_minus; ?></option>
	          <?php } ?>
	        </select></td>
	    </tr>
	    <tr>
	      <td><?php echo $entry_price; ?></td>
	      <td><input type="text" name="price" value="<?php echo $price; ?>" /></td>
	    </tr>
	    <tr>
	      <td><?php echo $entry_sort_order; ?></td>
	      <td><input type="text" name="sort_order" value="<?php echo $sort_order; ?>" size="1" /></td>
	    </tr>
	  </table>
    </div>
  </div>
  <script type="text/javascript"><!--
	$(function() {
		$("#tabs").tabs();
	});
  //--></script>
</form>
